public class StructuredDataId extends Objectimplements Serializable
| Modifier and Type | Field and Description |
|---|---|
static StructuredDataId |
META
RFC 5424 Meta.
|
static StructuredDataId |
ORIGIN
RFC 5424 Origin.
|
static int |
RESERVED
Reserved enterprise number.
|
static StructuredDataId |
TIME_QUALITY
RFC 5424 Time Quality.
|
| Modifier | Constructor and Description |
|---|---|
|
StructuredDataId(String
A Constructor that helps conformance to RFC 5424.
|
protected |
StructuredDataId(String
|
| Modifier and Type | Method and Description |
|---|---|
int |
getEnterpriseNumber()
Returns the enterprise number.
|
String |
getName()
Returns the StructuredDataId name.
|
String |
getOptional()
Returns a list of optional keys.
|
String |
getRequired()
Returns a list of required keys.
|
boolean |
isReserved()
Indicates if the id is reserved.
|
StructuredDataId |
makeId(String
Creates an id based on the current id.
|
StructuredDataId |
makeId(StructuredDataId
Creates an id using another id to supply default values.
|
String |
toString()
|
public static final StructuredDataIdTIME_QUALITY
public static final StructuredDataIdORIGIN
public static final StructuredDataIdMETA
public static final int RESERVED
public StructuredDataId(Stringname, int enterpriseNumber, String [] required, String [] optional)
name - The name portion of the id.
enterpriseNumber - The enterprise number.
required - The list of keys that are required for this id.
optional - The list of keys that are optional for this id.
public StructuredDataIdmakeId(StructuredDataId id)
id - The original StructuredDataId.
public StructuredDataIdmakeId(String defaultId, int anEnterpriseNumber)
defaultId - The default id to use if this StructuredDataId doesn't have a name.
anEnterpriseNumber - The enterprise number.
public String[] getRequired()
public String[] getOptional()
public StringgetName()
public int getEnterpriseNumber()
public boolean isReserved()
public StringtoString()