public final class RdfsProperty extends RdfsElem
Modifier and Type | Class and Description |
---|---|
static class |
RdfsProperty.Kind
We need this one with OWL, since we cannot distinguish between dataType and range (OWL always
uses range plus some other tags).
|
invalidCharsPattern
Constructor and Description |
---|
RdfsProperty(RdfsModel model,
java.lang.String about,
java.lang.String label,
java.lang.String comment,
java.lang.String pckage,
boolean validateAbout,
java.lang.String domain,
RdfsProperty.Kind kind,
java.lang.String dataType,
java.lang.String range,
java.lang.String invRoleName,
java.lang.String multiplicity)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Uses all the instance fields, except for _kind.
|
java.lang.String |
getDatatype() |
java.util.List<org.tanjakostic.jcleancim.experimental.builder.rdfs.RdfsDifference> |
getDiffs(RdfsElem other)
Calculates differences between this instance and
other and returns them in a
list of Strings. |
java.lang.String |
getDomain() |
java.lang.String |
getInvRoleName() |
java.lang.String |
getKind()
Returns the string describing the kind of this element.
|
java.lang.String |
getMultiplicity() |
java.lang.String |
getNameAndMultiplicity() |
java.lang.String |
getRange() |
int |
hashCode()
Uses all the instance fields, except for _kind.
|
boolean |
isAssocEnd() |
boolean |
isDatatypeAttr() |
boolean |
isEnumAttr() |
static boolean |
isPrimitiveType(java.lang.String className) |
boolean |
isSimpleAttr() |
java.lang.String |
toString() |
java.lang.String |
toStringLong() |
formatDiff, getAbout, getComment, getLabel, getModel, getName, getPackage, getSchemaLabel
public RdfsProperty(RdfsModel model, java.lang.String about, java.lang.String label, java.lang.String comment, java.lang.String pckage, boolean validateAbout, java.lang.String domain, RdfsProperty.Kind kind, java.lang.String dataType, java.lang.String range, java.lang.String invRoleName, java.lang.String multiplicity) throws CimSchemaException
model
- about
- label
- comment
- pckage
- validateAbout
- domain
- kind
- range
- invRoleName
- null for attributemultiplicity
- empty string for attributeCimSchemaException
public boolean isAssocEnd()
public static boolean isPrimitiveType(java.lang.String className)
public boolean isSimpleAttr()
public boolean isDatatypeAttr()
public boolean isEnumAttr()
public java.lang.String getDomain()
public java.lang.String getRange()
public java.lang.String getDatatype()
public java.lang.String getInvRoleName()
public java.lang.String getMultiplicity()
public java.lang.String getNameAndMultiplicity()
public java.lang.String getKind()
RdfsElem
public java.lang.String toStringLong()
toStringLong
in class RdfsElem
public int hashCode()
public boolean equals(java.lang.Object obj)
public final java.util.List<org.tanjakostic.jcleancim.experimental.builder.rdfs.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-2016 Tatjana (Tanja) Kostic