org.sblim.wbem.cim

Class CIMElement

Implemented Interfaces:
Comparable, Serializable
Known Direct Subclasses:
CIMQualifiableElement, CIMQualifier, CIMQualifierType

public class CIMElement
extends java.lang.Object
implements Serializable, Comparable

CIMElement.java (C) Copyright IBM Corp. 2005 THIS FILE IS PROVIDED UNDER THE TERMS OF THE COMMON PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT. You can obtain a current copy of the Common Public License from http://www.opensource.org/licenses/cpl1.0.php

Field Summary

protected static String[]
CLOSING_BRAKET
protected static String
EMPTY
protected static String[]
OPENING_BRAKET
protected String
iName

Constructor Summary

CIMElement()
Default ctor.
CIMElement(String pName)
Constructs a CIMElement with a given name
CIMElement(CIMElement pCimElement)
Constructs a CIMElement with the name from a given CIMElement

Method Summary

protected static void
appendTab(StringBuffer pBuffer, int pSpacesPerTab)
CIMElement
assign(CIMElement pNewElement)
int
compareTo(Object o)
boolean
equals(Object obj)
String
getName()
Gets the name for this CIMElement.
boolean
lessThan(CIMElement pElement)
Compares this object with the specified CIMElement.
void
setName(String pName)
Specifies the name for this CIMElement.
protected static String
vectorToMOFString(Vector pVector)
protected static String
vectorToMOFString(Vector pVector, boolean pLineFeed, int pSpacesPerTab)
protected static String
vectorToMOFString(Vector pVector, boolean pLineFeed, int pSpacesPerTab, int pBraketType, boolean pUseCommas)

Field Details

CLOSING_BRAKET

protected static final String[] CLOSING_BRAKET

EMPTY

protected static final String EMPTY

OPENING_BRAKET

protected static final String[] OPENING_BRAKET

iName

protected String iName

Constructor Details

CIMElement

public CIMElement()
Default ctor.

CIMElement

public CIMElement(String pName)
Constructs a CIMElement with a given name
Parameters:
pName - The name

CIMElement

public CIMElement(CIMElement pCimElement)
Constructs a CIMElement with the name from a given CIMElement
Parameters:
pCimElement - The CIMElement

Method Details

appendTab

protected static void appendTab(StringBuffer pBuffer,
                                int pSpacesPerTab)

assign

public CIMElement assign(CIMElement pNewElement)

compareTo

public int compareTo(Object o)

equals

public boolean equals(Object obj)

getName

public String getName()
Gets the name for this CIMElement.
Returns:
The name

lessThan

public boolean lessThan(CIMElement pElement)
Compares this object with the specified CIMElement.
Parameters:
pElement - The element to compare with
Returns:
true if string comparison of this object's name is less the specified CIMElement's name .

setName

public void setName(String pName)
Specifies the name for this CIMElement.
Parameters:
pName - The name

vectorToMOFString

protected static String vectorToMOFString(Vector pVector)

vectorToMOFString

protected static String vectorToMOFString(Vector pVector,
                                          boolean pLineFeed,
                                          int pSpacesPerTab)

vectorToMOFString

protected static String vectorToMOFString(Vector pVector,
                                          boolean pLineFeed,
                                          int pSpacesPerTab,
                                          int pBraketType,
                                          boolean pUseCommas)

Copyright © 2005, 2007 IBM Corporation. All Rights Reserved.