Package com.adobe.xmp.schema.model
Interface SchemaDescription
-
- All Superinterfaces:
java.io.Serializable
public interface SchemaDescription extends java.io.Serializable
Describes a single XMP namespace. Contains a list of properties that are part of the schema.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
accept(SchemaVisitor schemaVisitor)
void
addProperty(PropertyDescription property)
Adds a property to the schema.java.lang.String
getDescription()
java.lang.String
getLabel()
java.lang.String
getNamespaceURI()
java.util.List<PropertyDescription>
getProperties()
PropertyDescription
getProperty(java.lang.String localName)
void
removeProperty(java.lang.String localName)
Removes a property from the schema namespace.void
setDescription(java.lang.String description)
void
setLabel(java.lang.String label)
-
-
-
Method Detail
-
getNamespaceURI
java.lang.String getNamespaceURI()
- Returns:
- Returns the schema namespace.
-
getLabel
java.lang.String getLabel()
- Returns:
- Returns the default label.
-
setLabel
void setLabel(java.lang.String label)
- Parameters:
label
- Sets the default label
-
getDescription
java.lang.String getDescription()
- Returns:
- Returns the default description.
-
setDescription
void setDescription(java.lang.String description)
- Parameters:
description
- Sets the default description
-
addProperty
void addProperty(PropertyDescription property)
Adds a property to the schema. The namespaceURI of the property is set to the schema's namespace even if it had a different value before.- Parameters:
property
- an PropertyDescription
-
getProperty
PropertyDescription getProperty(java.lang.String localName)
- Parameters:
localName
- the local name of a property- Returns:
- Returns a property or null if not existing.
-
getProperties
java.util.List<PropertyDescription> getProperties()
- Returns:
- Returns a list of all properties contained in the schema.
-
removeProperty
void removeProperty(java.lang.String localName)
Removes a property from the schema namespace.- Parameters:
localName
- the local name of the property to remove
-
accept
void accept(SchemaVisitor schemaVisitor) throws XMPSchemaException
- Parameters:
schemaVisitor
- a visitor that implements theSchemaVisitor
-interface- Throws:
XMPSchemaException
- Handles visitor exceptions
-
-