public class PropertyInfo extends java.lang.Object implements PropertyAnnotationInfo
PropertyDescription object collected from parsing the
RelaxNG schema.| Constructor and Description |
|---|
PropertyInfo(java.lang.String ns,
java.lang.String name,
SchemaInfo schemaInfo)
Constructs a new PropertyInfo.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(PropertyInfo child)
Adds a child, which could either be a property qualifier, array item qualifier or a struct field
|
com.adobe.xmp.schema.rng.parser.annotation.RNGDecorationAnnotation.ACCESS |
getAccess() |
ArrayType.ArrayForm |
getArrayForm() |
com.adobe.xmp.schema.rng.parser.annotation.RNGDecorationAnnotation.CHOICE |
getChoice() |
DatatypeInfo |
getDataType() |
java.util.Map<java.lang.String,java.lang.String> |
getDecorator(javax.xml.namespace.QName qname)
Gets decorator map for given
QName. |
java.util.HashMap<javax.xml.namespace.QName,java.util.Map<java.lang.String,java.lang.String>> |
getDecoratorStore()
Gets the decorator store for this
PropertyInfo |
java.lang.String |
getDescription() |
java.util.Stack<PropertyInfo> |
getFields() |
java.lang.String |
getLabel() |
java.lang.String |
getName() |
java.lang.String |
getNS() |
ParamInfoGroup |
getParamInfos() |
java.util.Stack<PropertyInfo> |
getQualifiers() |
DatatypeInfo |
getRawDataType() |
SchemaInfo |
getSchemaInfo() |
boolean |
hasDecorators()
Returns if this property has decorators
|
boolean |
isArrayItemQualifier()
Gets if the propertyInfo holds information for an array item qualifier.
|
boolean |
isDeprecated() |
boolean |
isMandatory() |
boolean |
isQualifier() |
void |
setAccess(com.adobe.xmp.schema.rng.parser.annotation.RNGDecorationAnnotation.ACCESS mAccess) |
void |
setArrayForm(ArrayType.ArrayForm form) |
void |
setChoice(com.adobe.xmp.schema.rng.parser.annotation.RNGDecorationAnnotation.CHOICE choice) |
void |
setDataType(DatatypeInfo mDataType) |
void |
setDeprecated(boolean mDeprecated) |
void |
setDescription(java.lang.String mDescription) |
void |
setIsArrayItemQualifier(boolean isArrayItemQualifier)
Sets if this propertyInfo stores information for an array item qualifier.
|
void |
setIsQualifier(boolean isQualifier) |
void |
setLabel(java.lang.String mLabel) |
void |
setMandatory(boolean mMandatory) |
void |
setName(java.lang.String mName) |
void |
setNS(java.lang.String mNS) |
void |
setParamInfos(ParamInfoGroup mParamInfos) |
void |
setRawDataType(DatatypeInfo mRawDataType) |
void |
setSchemaInfo(SchemaInfo mSchemaInfo) |
java.lang.String |
toString() |
public PropertyInfo(java.lang.String ns,
java.lang.String name,
SchemaInfo schemaInfo)
ns - Namespace of the propertyname - Name of the propertyschemaInfo - SchemaInfo object, which stores information retrieved from annotations about the XMP schemapublic void addChild(PropertyInfo child)
child - child to addpublic java.util.Stack<PropertyInfo> getQualifiers()
PropertyInfopublic java.util.Stack<PropertyInfo> getFields()
PropertyInfo. Relevant only for struct property.public void setNS(java.lang.String mNS)
mNS - the mNS to setpublic java.lang.String getNS()
public void setName(java.lang.String mName)
mName - the mName to setpublic java.lang.String getName()
public void setParamInfos(ParamInfoGroup mParamInfos)
mParamInfos - the mParamInfos to setpublic ParamInfoGroup getParamInfos()
public void setRawDataType(DatatypeInfo mRawDataType)
mRawDataType - the mRawDataType to setpublic DatatypeInfo getRawDataType()
public void setDataType(DatatypeInfo mDataType)
mDataType - the mDataType to setpublic DatatypeInfo getDataType()
public void setArrayForm(ArrayType.ArrayForm form)
form - the mArrayForm to setpublic ArrayType.ArrayForm getArrayForm()
public void setLabel(java.lang.String mLabel)
setLabel in interface PropertyAnnotationInfomLabel - the mLabel to setpublic java.lang.String getLabel()
getLabel in interface PropertyAnnotationInfopublic void setDescription(java.lang.String mDescription)
setDescription in interface PropertyAnnotationInfomDescription - the mDescription to setpublic java.lang.String getDescription()
getDescription in interface PropertyAnnotationInfopublic void setAccess(com.adobe.xmp.schema.rng.parser.annotation.RNGDecorationAnnotation.ACCESS mAccess)
setAccess in interface PropertyAnnotationInfomAccess - the mAccess to setpublic com.adobe.xmp.schema.rng.parser.annotation.RNGDecorationAnnotation.ACCESS getAccess()
getAccess in interface PropertyAnnotationInfopublic void setDeprecated(boolean mDeprecated)
mDeprecated - the mDeprecated to setpublic boolean isDeprecated()
public void setMandatory(boolean mMandatory)
mMandatory - the mMandatory to setpublic boolean isMandatory()
public void setIsArrayItemQualifier(boolean isArrayItemQualifier)
isArrayItemQualifier - booleanpublic boolean isArrayItemQualifier()
public void setIsQualifier(boolean isQualifier)
isQualifier - the mIsQualifier to setpublic boolean isQualifier()
public void setSchemaInfo(SchemaInfo mSchemaInfo)
mSchemaInfo - the mSchemaInfo to setpublic SchemaInfo getSchemaInfo()
public void setChoice(com.adobe.xmp.schema.rng.parser.annotation.RNGDecorationAnnotation.CHOICE choice)
choice - the choice to setpublic com.adobe.xmp.schema.rng.parser.annotation.RNGDecorationAnnotation.CHOICE getChoice()
public boolean hasDecorators()
public java.util.HashMap<javax.xml.namespace.QName,java.util.Map<java.lang.String,java.lang.String>> getDecoratorStore()
PropertyInfopublic java.util.Map<java.lang.String,java.lang.String> getDecorator(javax.xml.namespace.QName qname)
QName. If entry does not
exist for the given qname, an entry is created in the decoratorstore.qname - qnamepublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2010 - 2023 Adobe. All Rights Reserved