public final class RdfsEnumLiteral extends RdfsElem
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
_type |
invalidCharsPattern
Constructor and Description |
---|
RdfsEnumLiteral(RdfsModel model,
org.w3c.dom.Element elem)
Creates instance from DOM Element.
|
RdfsEnumLiteral(RdfsModel model,
java.lang.String about,
java.lang.String label,
java.lang.String comment,
java.lang.String pckage,
java.lang.String type)
Creates instance independently of DOM Element.
|
Modifier and Type | Method and Description |
---|---|
private boolean |
doEquals(boolean isForEquals,
java.lang.Object obj,
java.util.List<RdfsDifference> diffs) |
boolean |
equals(java.lang.Object obj)
Uses all instance fields except for _model.
|
java.util.List<RdfsDifference> |
getDiffs(RdfsElem other)
Calculates differences between this instance and
other and returns them in a
list of Strings. |
java.lang.String |
getKind()
Returns the string describing the kind of this element.
|
int |
hashCode()
Uses all instance fields except for _model.
|
java.lang.String |
toString() |
java.lang.String |
toStringLong() |
formatDiff, formatMissingAndAdded, getAbout, getComment, getLabel, getModel, getName, getPackage, getSchemaLabel
RdfsEnumLiteral(RdfsModel model, org.w3c.dom.Element elem) throws CimSchemaException
model
- elem
- CimSchemaException
- if about attribute contains an invalid URI.RdfsEnumLiteral(RdfsModel model, java.lang.String about, java.lang.String label, java.lang.String comment, java.lang.String pckage, java.lang.String type) throws CimSchemaException
model
- about
- (=schemaLabel#name)label
- comment
- pckage
- type
- CimSchemaException
- if about attribute contains an invalid URI.public java.lang.String getKind()
RdfsElem
public java.lang.String toStringLong()
toStringLong
in class RdfsElem
public int hashCode()
RdfsElem
public boolean equals(java.lang.Object obj)
RdfsElem
private boolean doEquals(boolean isForEquals, java.lang.Object obj, java.util.List<RdfsDifference> diffs)
isForEquals
- obj
- diffs
- collecting parameterpublic final java.util.List<RdfsDifference> getDiffs(RdfsElem other)
RdfsElem
other
and returns them in a
list of Strings. While RdfsElem.equals(Object)
method ignores some known differences between
elements in different dialects, this method catches them all.
Implementation note: Subclasses that override this method are expected to first call super.runDiff().
Copyright 2009-2015 Tatjana (Tanja) Kostic