@Override public CObject copy() { return new ArchetypeSlot(path(), getRmTypeName(), getOccurrences(), getNodeId(), getParent(), includes, excludes); }
/** * List of constraints representing members of the container value of this * attribute within the data. Semantics of the container uniqueness and * ordering given by the cardinality. * * @return unmodifiable list of CObject */ public List<CObject> members() { return getChildren(); }
/** * List of alternative constraints for the single child of this attribute * within the data. * * @return unmodifiable list of alternatives, null if anyAllowed */ public List<CObject> alternatives() { return getChildren(); }
@Override public CObject copy() { return new ArchetypeInternalRef(path(), getRmTypeName(), getOccurrences(), getNodeId(), getParent(), targetPath); }
@Override public CAttribute copy() { return new CMultipleAttribute(path(), getRmAttributeName(), getExistence(), cardinality, copyChildren()); }
@Override public CObject copy() { return new ConstraintRef(path(), getRmTypeName(), getOccurrences(), getNodeId(), getParent(), reference); }
@Override public CAttribute copy() { return new CSingleAttribute(path(), getRmAttributeName(), getExistence(), copyChildren()); }
@Override public CObject copy() { return new CPrimitiveObject(path(), getOccurrences(), getNodeId(), getParent(), item); }
/** * Returns true if this attribute is required * * @return true if required */ public boolean isRequired() { return Existence.REQUIRED.equals(existence); }
/** * Create a single required attribute without children * * @param path * @param rmAttributeName * @return */ public static CSingleAttribute createRequired(String path, String rmAttributeName) { return new CSingleAttribute(path, rmAttributeName, Existence.REQUIRED); }
/** * Return path base for the children nodes * * @return child node path base */ public String childNodePathBase() { return parentNodePath() + PATH_SEPARATOR + rmAttributeName; }
/** * True if this node is a valid archetype node. * * @return true if valid */ public boolean isValid() { if (isAnyAllowed()) { return true; } return false; // todo: implement this method }
@Override public CObject copy() { return new ArchetypeInternalRef(path(), getRmTypeName(), getOccurrences(), getNodeId(), getParent(), targetPath); }
@Override public CObject copy() { return new ConstraintRef(path(), getRmTypeName(), getOccurrences(), getNodeId(), getParent(), reference); }
@Override public CAttribute copy() { return new CSingleAttribute(path(), getRmAttributeName(), getExistence(), copyChildren()); }
/** * Returns true if this attribute is required * * @return true if required */ public boolean isRequired() { return Existence.REQUIRED.equals(existence); }
/** * Create a single required attribute without children * * @param path * @param rmAttributeName * @return */ public static CSingleAttribute createRequired(String path, String rmAttributeName) { return new CSingleAttribute(path, rmAttributeName, Existence.REQUIRED); }
/** * List of constraints representing members of the container value of this * attribute within the data. Semantics of the container uniqueness and * ordering given by the cardinality. * * @return unmodifiable list of CObject */ public List<CObject> members() { return getChildren(); }
/** * Returns true if this attribute should be allowed * * @return */ public boolean isAllowed() { return ! Existence.NOT_ALLOWED.equals(existence); }
/** * Returns true if this attribute should be allowed * * @return */ public boolean isAllowed() { return ! Existence.NOT_ALLOWED.equals(existence); }